var router = require('express').Router();
const path = require('path')
const fs = require('fs')
// router.use('/aa',aaa)
module.exports = router;
let routes = fs.readdirSync(path.join(__dirname,'routes'))
routes.forEach(r=>{
  router.use(require(path.join(__dirname,'routes',r)))
})

// console.log(path.join(__dirname,'routes',));